package com.dbManage.dao;

import com.dbManage.annotation.MyBatisRepository;
import com.dbManage.entity.CustomTag;
import org.springframework.stereotype.Repository;

import java.util.List;

@MyBatisRepository
@Repository
public interface CustomTagDao {

    void insertTag(CustomTag tag);

    /**
     * 根据uid查找对应的标签
     * @param uid
     * @return
     */
    List<CustomTag> findAllCustomTag(int uid);

    CustomTag findCustomTagById(int id);

    CustomTag findCustomTagByTagName(String tag);

    void updateCustomTag(CustomTag tag);

    void deleteCustomTagById(int id);


}
